#ifndef __LASER_SENSOR_H
#define __LASER_SENSOR_H

#define LASER_SENSOR_SERIAL     &huart1
//置信度最大为62，若置信度低于59，或数据值小于28，选择不相信激光传感器，相信编码器
#define MAX_CONFIDENCE_LEVEL    62
#define TOLERANCE               3
#define MIN_DISTANCE_DATA       28            

void laser_sensor_init(void);
void laser_sensor_read(void);
uint16_t laser_sensor_get_data(void);
uint8_t laser_sensor_get_confidence_level(void);




#endif